import NProgress from 'nprogress'
import store from "@/store/index.js";
import router from './router/index.js'
router.beforeEach((to,form)=>{
    console.log(to)
    store.commit("ADD_TAB",{name: to.name, url: to.fullPath, affix: to.meta&&to.meta.affix})
})